package com.example.exceltosqlite.ui.sqldao;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.exceltosqlite.R;
import com.example.exceltosqlite.entity.SqliteFileNumberEntity;
import com.example.exceltosqlite.entity.SqliteFileTypeEntity;

import butterknife.BindView;
import butterknife.ButterKnife;


public class SpinnerTypeItemview extends LinearLayout {

    @BindView(R.id.textTV)
    TextView textTV;
    private Context context;


    public SpinnerTypeItemview(Context context) {
        super(context);
        this.context = context;
        LayoutInflater.from(context).inflate(R.layout.spinner_textview, this);
        ButterKnife.bind(this);

    }

    public void bind(SqliteFileTypeEntity item) {
        textTV.setText(item.getType());
    }

}
